package org.apache.dubbo.samples.api;

public class GreetingsServiceStub implements GreetingsService {
    private GreetingsService greetingsService;
    public GreetingsServiceStub(GreetingsService greetingsService) {
        this.greetingsService = greetingsService;
    }

    @Override
    public String sayHi(String name) {
        try {
            return "stub:"+greetingsService.sayHi(name);
        } catch (Exception e) {
            e.printStackTrace();
            return "容错数据";
        }
    }
}
